'''
this is a comment
'''

"""
comment too
"""

string1 = 'string1'
string2 = "string2"

# string3
# wuhu
string3 = '''string3 \nwuhu'''

# 换行
#
# string4
#  wuhu
# 
string4 = '''
string4 \n wuhu
'''

# 转义\
# 
# string5 \n wuhu
#
string5 = r""" # R 也是一样的
string5 \n wuhu
"""

# 多行命令
# string1string2string3
# wuhu
# string4
#  wuhu
#
string6 = string1 +\
string2     + string3 +\
string4

# 括号语句(){}[], 无需换行
# ['string1', 'string2', 'string3 \nwuhu', '\nstring4 \n wuhu\n', '\nstring5 \\n wuhu\n']
arr = [
 string1,
    string2,
string3,
                    string4,
string5
]

print(string1)
print(string2)
print(string3)
print(string4)
print(string5)
print(string6)
print(arr)

int = 5
bool = False
float = 3.14
complex = 1 + 2j

print(int)
print(bool)
print(float)
print(complex)

# [)
# eq 0:-1:1
# string
print(string1[0:-1])
# g
print(string1[-2])
# ring1
print(string1[2:])
# st
print(string1[:2])
# bgn:end:step
# ti
print(string1[1:5:2])

# just a blank line
print()
# string1string1string1
print(string1 * 3)